﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="/Scripts/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="js/flexpaper_flash.js"></script>
    <script type="text/javascript">
        function getQueryString(name, defauval) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) { return unescape(r[2]); }
            else {
                return defauval || "";
            }
        }
        $(document).ready(function () {
            var w = getQueryString("w", $("body").width());
            var h = getQueryString("h", $("body").height());
            var path = getQueryString("path"); 
            $("#viewerPlaceHolder").width(w).height(h)
            var filename = $("#hidefilename").val();
            var fp = new FlexPaperViewer(
                         'FlexPaperViewer',
                         'viewerPlaceHolder', {
                             config: {
                                 SwfFile: escape(path),
                                 Scale: 1.1,
                                 ZoomTransition: 'easeOut',
                                 ZoomTime: 0.5,
                                 ZoomInterval: 0.2,
                                 FitPageOnLoad: false,
                                 FitWidthOnLoad: false,
                                 PrintEnabled: true,
                                 FullScreenAsMaxWindow: false,
                                 ProgressiveLoading: false,
                                 MinZoomSize: 0.2,
                                 MaxZoomSize: 5,
                                 SearchMatchAll: false,
                                 InitViewMode: 'Portrait',
                                 ViewModeToolsVisible: true,
                                 ZoomToolsVisible: true,
                                 NavToolsVisible: true,
                                 CursorToolsVisible: true,
                                 SearchToolsVisible: true,
                                 localeChain: 'zh_CN'
                             }
                         });

        });

    </script>
</head>
<body style="margin: 0;">
    <div style="position: absolute;">
        <a id="viewerPlaceHolder" style=" display: block; min-height:600px;min-width:800px"></a>

    </div>
    <!-- THE FOLLOWING CODE BLOCK CAN SAFELY BE REMOVED, IT IS ONLY PLACED HERE TO HELP YOU GET STARTED. -->

</body>
</html>